﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace doufu.Model
{
    [PetaPoco.TableName("category")]
    [PetaPoco.PrimaryKey("category_id")]
    public class category : ModelBase
    {
        /// <summary>
        /// id
        /// </summary>
        public int category_id { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        [Display(Name = "类型名称")]
        [Required(ErrorMessage = "请填写类型名称")]
        public string category_name { get; set; }
    }
}
